import {ElForm} from "element-plus";
import {BasicScope} from "./basicScope";
import {Group} from "./group";

/**
 * 弹出层
 */
export interface DialogScope<T> extends BasicScope<T> {
  /**
   * 弹出层类型
   */
  mode?: "dialog" | "drawer";
  /**
   * 表单分组
   */
  group?: Array<Group>;
  /**
   * 弹出层表单作用域
   */
  $form?: BasicScope<typeof ElForm>;
  /**
   * 弹出层操作栏作用域
   */
  $footer?: BasicScope<T>;
}
